FROM openjdk:8-jdk-alpine
#-XX:PermSize=64M -XX:MaxPermSize=12
ENV JAVA_OPTS="-XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=256m"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar app.jar --spring.profiles.active=prd" ]